package com.hushan.elevator.utils;


public enum ResultCode {

    SUCCESS(true,200,"success"),
    FAIL(false,300,"fail"),
    SERVER_ERROR(false,400,"server busy"),
    UN_AUTHORISE(false,301,"un authorised"),
    UN_LOGIN(false,302,"un login"),
    SERVER_BUSY(false,501,"server busy");

    final boolean success;
    final int code;
    final String message;
    ResultCode(boolean success, int code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }
    public boolean success(){
        return success;
    }
    public int code(){
        return code;
    }
    public String message(){
        return message;
    }
}